package do

import "time"

type ToyDO struct {
	Id        uint64    `json:"id" gorm:"primaryKey"`
	Code      string    `json:"code"`
	Name      string    `json:"name"`
	Color     uint8     `json:"color"`
	CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"`
	UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"`
	Deleted   uint64    `json:"deleted"`
}

func (ToyDO) TableName() string {
	return "toy"
}
